package com.woniuxy.carlife.carlifeuserweb.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author zjq
 * @ClassName:Shoppingcart
 * @Description:
 * @date 2021/4/6 20:02
 **/

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_shoppingcart")
@ApiModel(value = "Shoppingcart对象", description = "")
public class Shoppingcart implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "shoppingcart_id", type = IdType.AUTO)
    private Integer shoppingcartId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    private String shopname;

    @ApiModelProperty(value = "商品id")
    private Integer productId;

    @ApiModelProperty(value = "商品名字")
    private String productTitle;

    @ApiModelProperty(value = "商品单价价格")
    private BigDecimal productPrice;

    private String productSpecs;

    @ApiModelProperty(value = "商品数量（默认为1）")
    private Integer number;

    @ApiModelProperty(value = "商品图片")
    private String productImage;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    private String shoppingcartOperationrecord;


}
